{% extends "基础.html" %}

{% block 标题 %}
  草蟒问答 - 发布
{% endblock %}

{% block 头部 %}
  
{% endblock %}

{% block 主体 %}
<div class="row">
  <div class="col"></div>
  <div class="col-6">
  <form method="post" action="{{ 构造url('问答.发布') }}">
     {{ 表单.csrf_token }}
    <h3 class="text-center mb-4">发布问答</h3>
  <div class="mb-3 d-grid">
    <input type="text" name="标题" id="" placeholder="请输入标题" class="form-control">
  </div>
  <div class="mb-3 d-grid">
    <textarea name="内容" id="" rows="10" placeholder="请输入内容"  class="form-control"></textarea>
  </div>
  <div class="mb-3 text-danger">
    {% for msg in 获取闪现消息々() %}
    <p>{{ msg }}</p>
    {% endfor %}
  </div>
  <div class="text-end">
    <button type="submit" class="btn btn-primary">发布</button>
  </div>
  </form>
  </div>
  <div class="col"></div>
</div>
{% endblock %}